package singleton;/** * Created by Administrator on 2018-10-23. * 单件 */public class Singleton {    private  static Singleton uniqueInstance;    private  Singleton(){}    public static Singleton getInstance(){        if(uniqueInstance ==null){            uniqueInstance =new Singleton();        }        return uniqueInstance;    }}